home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 18 / Developer Source Volume 18 (I-MODE Publications, Inc.)(2000).iso / esysp / 021 / crawf102.gif < prev    next >
Graphics Interchange Format  |  2000-06-28  |  218KB  |  568x769  |  8-bit (105 colors)
Labels: text | handwriting | parallel | document | diagram | rectangle | number | line | font
OCR: FIGURE 2 Processing involved in a multiply/accumulate operation, as implemented by the GSM EFR ANSI C code. A DSP can perform this operation in one cycle , Lavar3 = L mac (L_var3, var2, var1); / L_mult */ Word32 Limult Word16 wart, /*L_mac: / Word16 war2 Word32 L_mac L var3, Word32 Lvar out; Word16 var1 Word16: var2 Iyar out = (Word32)varl * (hordo2)var2; if (L var_out != (Word32) 0x40000000L) L var out = 2; Word32 L'var_out; Word32 L_product else Overflow = 1; L product = Lamult (var1, var2); Lawir_out = HAX 32; - return (Lavar_out); L var_out = L_add (L_var3, L_product); return (L_var_out); / Luadd */ Word32 Laadd Word32 L var1, Word32 L_var2 Word32 Lavar out; Livar_out = L_var1 + Lavar2; if (((L_var1 " L'yar2) & MIN 32) = 0) if ((L_var_out " L_yar1) & MIN 32 L_var_out = (L_var1 < 0) ? MIN 32 : MAX_32 Overflow = 1; return (Lavar_out)